#include "widget.h"
#include "ui_widget.h"

#include "button.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    srand(time(nullptr));
    ui->setupUi(this);

    Button* button = new Button(this);
    button->setText("按钮");
    button->setGeometry(300, 200, 40, 20);

}

Widget::~Widget()
{
    delete ui;
}

